// 导入request请求工具
import request from '@/utils/request'

export const userRegisterService = (params) => {
  return request({
    url: '/user/register',
    method: 'post',
    data: params
  })
}

// 登录
export const userLoginService = (params) => {
  return request({
    url: '/user/login',
    method: 'post',
    data: params
  })
}

//登出

export const userLoginOutService = () => {
  return request({
    url: '/user/logout',
    method: 'get',
  })
}